'''
names = ["张三","李四","王五","小明"]

name = input("请输入你的名字：")
if name in names:
    print("{}你在这个列表里面！".format(name))
else :print("{}抱歉你不在！".format(name))

'''
names = ["张三","李四","王五","小明"]

name = input("请输入你的名字：")
for x in names:
    if x==name :
        print("{}你在这个列表里面！".format(name))
        break
    else :
        print("{}抱歉你不在！".format(name))
        break

